package com.hirain.decorator;

import org.junit.Test;

/**
 * Created by caicf on 2016/8/18.
 */
public class DecotoratorTest {

    @Test
    public void test() {
        Skills developer=new DeveloperC();
        developer=new JavaSkill(developer);
        developer=new WebSkill(developer);
        developer=new LinuxSkill(developer);
        System.out.println(developer.skill());
    }
}
